// export const initUserAction = {
//     type:"initUser",
//     payload:{id:2,name:"xiaowu"}
// }
export const initUserAC = (obj) => {
    return {
        type: "initUser",
        payload: obj
    }
}

// export const updateUserAction = {
//     type: "updateUsername",
//     payload: "xiaofeifei"
// }

export const updateUserAC = (username) => {
    return {
        type: "updateUsername",
        payload: username
    }
}

